const dedent = require('dedent');
const { runTask } = require('../helper');

/** @type {TaskRegister} */
module.exports = {
  name: 'build',
  description: '工程打包',
  register(options) {
    return runTask(options, 'build');
  },
  options: {
    doc: '打包文档',
    mode: '打包的服务：development、testb、testc、testd、teste、uat、production',
  },
  examples: dedent`
    gtask build
    gtask build --doc
    gtask build --mode=development
    gtask build --doc --mode=development
  `,
};
